package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by Lenovo on 2017/12/11.
 */
@Entity
@Table(name = "V_SYS_ROLE_2_RIGHT", schema = "oa", catalog = "")
public class Role2RightEntityView extends BaseEntity{
    private String roleId;
    private String rightId;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRightId() {
        return rightId;
    }

    public void setRightId(String rightId) {
        this.rightId = rightId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject json = new JSONObject();
        json.put("roleId",this.getRoleId());
        json.put("rightId",this.getRightId());
        return json;
    }

    @Override
    public String getTableName() {
        return "V_SYS_ROLE_2_RIGHT";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject json = new JSONObject();
        json.put("roleId","roleId");
        json.put("rightId","rightId");
        return json;
    }
}
